package com.yami.shop.service;

import com.yami.shop.service.utils.PayRequest;
import com.yami.shop.service.utils.PayResponse;

/**
 * 微信小程序接口
 */
public interface WechatService {

    /**
     * 根据Code获取微信小程序用户openId
     * @param code
     * @return
     */
    String getMinProgramOpenId(String code);

    /**
     * 小程序下单
     * @param payRequest
     * @return
     */
    PayResponse payment(PayRequest payRequest);
}
